package com.ybb.vue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ybb.vue.common.Result;
import com.ybb.vue.domain.dto.UpdateUserPasswordDto;
import com.ybb.vue.domain.dto.UserDto;
import com.ybb.vue.entity.SysUser;

public interface SysUserService extends IService<SysUser> {
    // 测试   useradd
    Result saveUser(UserDto userDto);

    // 根据username查找用户信息
    SysUser getByUsername(String username);

    // 根据useId查找用户权限
    String getUserAuthorityInfo(String userId);

    // 修改密码
    Result<?>  updatePassword(UpdateUserPasswordDto dto);
}